package es.ats.codington.festival.interfaces.daos;

import java.sql.SQLException;

import es.ats.codington.festival.domain.Visitor;

public interface IVisitorDAO {

	/**
	 * @param u
	 * @return
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	
	public boolean registerNewVisitorDAO(Visitor u) throws SQLException, ClassNotFoundException;
	
	/** 
	 * @param u
	 * @return
	 * @throws ClassNotFoundException
	 * @throws SQLException
	 */
	
	public boolean updateVisitorDAO(Visitor u) throws ClassNotFoundException, SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	
	public int getIdVisitorDAO(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	
	public boolean loginDAO(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	
	public boolean isAdminDAO(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public boolean unregisterVisitorDAO(Visitor u) throws SQLException;
	
	/**
	 * 
	 * @param u
	 * @return
	 * @throws SQLException
	 */
	public Visitor getVisitorDAO(Visitor u) throws SQLException;
}
